home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / comm / bbs / cit_src_7H21.lha / minrexx.h < prev    next >
C/C++ Source or Header  |  1997-07-27  |  1KB  |  42 lines

  1. /*
  2.  *   Includes for minrexx.c; please refer to that file for
  3.  *   further documentation.
  4.  */
  5. #include <proto/all.h>
  6. #include <string.h>
  7. #include <rexx/rxslib.h>
  8. #include <proto/rexxsyslib.h>
  9. #include <clib/rexxsyslib_protos.h>
  10. #include <pragmas/rexxsyslib_pragmas.h>
  11.  
  12. /*
  13.  *   This is the list of functions we can access.  (Cheap forward
  14.  *   declarations, too.)
  15.  */
  16. long upRexxPort(char *, struct rexxCommandList *, char *,
  17.            void (*)(struct RexxMsg *, struct rexxCommandList *, char *)) ;
  18. void dnRexxPort(void) ;
  19. void dispRexxPort(void) ;
  20. struct RexxMsg *sendRexxCmd(char *, void (*)(struct RexxMsg *),
  21.            STRPTR, STRPTR, STRPTR) ;
  22. struct RexxMsg *syncRexxCmd(char *, struct RexxMsg *msg) ;
  23. struct RexxMsg *asyncRexxCmd(char *) ;
  24. void replyRexxCmd(struct RexxMsg *, long, long, char *) ;
  25. void DontReply(void) ;
  26. /*
  27.  *   Maximum messages that can be pending, and the return codes
  28.  *   for two bad situations.
  29.  */
  30. #define MAXRXOUTSTANDING (300)
  31. #define RXERRORIMGONE (100)
  32. #define RXERRORNOCMD (30)
  33. /*
  34.  *   This is the association list you build up (statically or
  35.  *   dynamically) that should be terminated with an entry with
  36.  *   NULL for the name . . .
  37.  */
  38. struct rexxCommandList {
  39.    char *name ;
  40.    void (*userdata)(struct RexxMsg *, char *) ;
  41. } ;
  42.